package com.framework.Module.REIM.immess;

import com.framework.Table.Table;
import com.framerock.baselib.Rock;

public class Tableimmess extends  Table{
   

    protected void initTable() {
        this.tablename   = "immess";
        this.tablenamesm = "聊天记录";

        this.flowsetMap  = Rock.getMap(new String[]{
                "type", "REIM",
                "sort", "950",
                "isxt", "2",
                "sortdir","id desc",
                "imgurl","https://xinhu-1251238447.file.myqcloud.com/img/17541.png",
                "istj","1"
        });

        this.addfields("type", "tinyint(1)", "0", "类型@0|单人,1|单位群,2|平台单人,3|平台组",new String[]{
                "fieldstype","select"
        });
        this.addfields("receid", "int(11)", "0", "接收人ID");
        this.addfields("sendid", "int(11)", "0", "发送人ID");
        this.addfields("cont", "varchar(2000)", "", "消息内容", new String[]{
                "islb","0",
                "fieldstype","textarea"
        });
        this.addfields("optdt", "datetime", null, "操作时间", new String[]{
                "islb","1",
        });
        this.addfields("fileid", "int(11)", "0", "文件ID",new String[]{
                "islb","1",
                "fieldstype","uploadfile"
        });
        this.addfields("uid", "int(11)", "0", "平台用户");
        this.addfields("cid", "int(11)", "0", "对应单位", new String[]{
                "islb","0",
                "islu","0",
        });
        this.addfields("receids", "varchar(5000)", "", "接收人ID", new String[]{
                "notelement","1"
        });
        this.addfields("atid", "int(11)", "0", "AT对应人");
        this.addfields("typereceid", "KEY", "`type`,`receid`", "主键");
    }
}
